enum BlueConnectionState {
  connectting('连接中', 1),
  disconnected('未连接', 2),
  disconnecting('断开中', 3),
  connected('已连接', 4);

  final String title;
  final int state;
  const BlueConnectionState(this.title, this.state);
}

enum BlueType {
  pulse(value: 1, label: "脉搏"),
  faigue(value: 2, label: "眨眼"),
  sleep(value: 3, label: "呼吸");

  final int value;
  final String label;

  const BlueType({
    required this.value,
    required this.label,
  });

  static Iterable<String> get labels {
    return BlueType.values.map((e) => e.label);
  }
}
